﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VerticaAPI.model
{
    public class BasShopMap : ClassMap<BasShopModel>
    {
        public BasShopMap()
        {
            Id(x => x.ShopID).GeneratedBy.Assigned();
            Map(x => x.ShopName);
            Map(x => x.ShopFullName);
            Map(x => x.OperationAreaID);
            Map(x => x.StockID);
            Map(x => x.AreaID);
            Map(x => x.Address);
            Table("ods.TestBulk");
            Table("ods.dim_Bas_Shop");
        }
    }

    public class BusMap : ClassMap<Bus>
    {
        public BusMap()
        {
            Id(x => x.Id).GeneratedBy.Assigned();
            Map(x => x.Num);
            //HasMany(x => x.Models)
            //    .KeyColumn("MakeId");
            Table("ods.Bus");
        }
    }
}
